# -*- coding: utf-8 -*-
"""
-------------------------------------------------
  @Time : 2021/5/14 20:21 
  @Auth : 可优
  @File : serializers.py
  @IDE  : PyCharm
  @Motto: ABC(Always Be Coding)
  @Email: keyou100@qq.com
  @Company: 湖南省零檬信息技术有限公司
  @Copyright: 柠檬班
-------------------------------------------------
"""
from rest_framework import serializers
from .models import Tasks



class TasksModelSerailizer(serializers.ModelSerializer):

    class Meta:
        model = Tasks
        exclude = ('create_time', 'update_time')


class SearchTasksModelSerailizer(serializers.ModelSerializer):
    task_start_data = serializers.CharField(write_only=True)
    task_end_data = serializers.CharField(write_only=True)

    class Meta:
        model = Tasks
        fields = "__all__"







